import request from '../utils/request';

export const genPage = query => {
    return request({
        url: '/gen/page',
        method: 'get',
        params: query
    });
};

export const genInfo = query => {
    return request({
        url: '/gen/getTableByName/' + query,
        method: 'get'
    });
};

export const genGenerate = query => {
    return request({
        url: '/gen/generate',
        method: 'post',
        data: query
    });
};

